package com.orcsystem.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.orcsystem.common.utils.PageUtils;
import com.orcsystem.member.entity.MemberEntity;
import com.orcsystem.member.exception.EmailExistException;
import com.orcsystem.member.exception.MobileExistException;
import com.orcsystem.member.exception.UserNameExistException;
import com.orcsystem.member.vo.MemberLoginVo;
import com.orcsystem.member.vo.MemberRegistVo;

import java.util.Map;

/**
 * 会员
 *
 * @author aihs
 * @email aihs_work@163.com
 * @date 2020-06-01 14:23:29
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegistVo vo);

    void checkEmailUnique(String email) throws EmailExistException;

    void checkMobileUnique(String mobile) throws MobileExistException;

    void checkUserNameUnique(String userName) throws UserNameExistException;

    MemberEntity login(MemberLoginVo vo);
}

